<?php
/**
 * 配置表验证器
 */

namespace app\common\validate;

class ShopConfigValidate extends Validate
{
    protected $rule = [
            'type|类型' => 'require',
    'name|名称' => 'require',
    'value|值' => 'require',

    ];

    protected $message = [
            'type.require' => '类型不能为空',
    'name.require' => '名称不能为空',
    'value.require' => '值不能为空',

    ];

    protected $scene = [
        'add'  => ['type','name','value',],
'edit' => ['type','name','value',],

    ];

    

}
